extends ProgressBar

class_name ProgressLine

signal done

@export var isProgressing: = false
var speed = 1

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	if isProgressing:
		value += speed
	if value == max_value:
		done.emit(value)
		isProgressing = false
		hide()

func start(i_speed=1):
	show()
	value = 0
	speed = i_speed
	isProgressing = true
